/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.integral.web.model.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @Description: 积分明细 vo
 * @Author: xiaoq
 * @Date : 2019/11/26 10:25
 */
@Data
@ApiModel(value = "积分明细VO")
public class IntegralDetailVo {

	@ApiModelProperty(value = "积分明细表id")
	private Long integralDetailId;

	@ApiModelProperty(value = "用户id")
	private String userId;

	@ApiModelProperty(value = "类别  1. 兑换积分商品(减少) 2.购买商品(增加) 3.使用积分购买商品(减少) 4,登入首次登录,5.每日首次分享 6.签到 7.每日步数达标 8.商家充值9.商家扣除 10.清空")
	private Integer gainIntegralType;

	@ApiModelProperty(value = "积分值")
	private BigDecimal integral;

	@ApiModelProperty(value = "明细名扩展")
	private String detailName;

	@ApiModelProperty(value = "现有积分(计算当前用户的积分值是多少)")
	private BigDecimal nowTheIntegral;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间")
	private String createTime;

}
